// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-menu--collapse
  > div
  > .el-submenu
  > .el-submenu__title
  .el-submenu__icon-arrow {
  display: none;
}

.el-dropdown .el-dropdown-link{
  color: var(--el-color-primary) !important;
}

// PC端优化样式
@media (min-width: 1200px) {
  .el-dialog {
    max-width: 1200px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  .el-card {
    margin-bottom: 24px;
  }
  
  .el-form-item {
    margin-bottom: 24px;
  }
}

@media (min-width: 1600px) {
  .el-dialog {
    max-width: 1400px;
  }
  
  .el-table {
    font-size: 14px;
  }
  
  .el-card {
    margin-bottom: 32px;
  }
}

// 平板设备适配
@media (min-width: 768px) and (max-width: 1199px) {
  .el-dialog {
    max-width: 90%;
  }
  
  .el-card {
    margin-bottom: 20px;
  }
  
  .el-form-item {
    margin-bottom: 20px;
  }
}

// 移动端适配
@media (max-width: 767px) {
  .el-dialog {
    width: 95% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    
    .el-dialog__body {
      padding: 15px;
    }
  }
  
  .el-card {
    margin-bottom: 16px;
  }
  
  .el-form-item {
    margin-bottom: 16px;
    
    .el-form-item__label {
      padding: 0 0 6px 0;
      display: block;
      text-align: left;
    }
    
    .el-form-item__content {
      display: block;
    }
  }
  
  .el-button {
    padding: 7px 14px;
    
    &.el-button--small {
      padding: 5px 10px;
    }
    
    &.el-button--large {
      padding: 9px 16px;
    }
  }
  
  // 表格响应式处理
  .el-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

// 超小屏幕适配
@media (max-width: 479px) {
  .el-dialog {
    width: 98% !important;
    
    .el-dialog__body {
      padding: 12px;
    }
  }
  
  .el-card {
    margin-bottom: 12px;
  }
  
  .el-form-item {
    margin-bottom: 14px;
  }
  
  .el-button {
    padding: 6px 12px;
    font-size: 12px;
    
    &.el-button--small {
      padding: 4px 8px;
      font-size: 11px;
    }
    
    &.el-button--large {
      padding: 8px 14px;
      font-size: 13px;
    }
  }
}